/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.ssau.model;


public class DataModelChangeEvent {

    private int modifiers;
    private int entityType;
    private int action;

    public static final int USER = 4;
    public static final int MESSAGE = 2;
    public static final int THREAD = 1;

    public static final int DELETE = 1;
    public static final int ADD = 2;
    public static final int REPLACE = 4;

    private int id;

    public DataModelChangeEvent() {

    }
/*
    DataModelChangeEvent(int modifiers) {
        setModifiers(modifiers);
    }*/

    public DataModelChangeEvent(int entityType, int action, int id) {
        this.entityType = entityType;
        this.action = action;
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public int getEntityType() {
        return entityType;
    }

    public void setEntityType(int entityType) {
        this.entityType = entityType;
    }
/*
    DataModelChangeEvent(int modifiers) {
        setModifiers(modifiers);
    }

    public void setModifiers(int modifiers) {
        this.modifiers = modifiers;
    }

    public int getModifiers() {
        return modifiers;
    }*/

}
